#ifndef BLUETOOTH_USART_H
#define BLUETOOTH_USART_H

#include "../usart/usart.h"

// Initializtion Functions
void Bluetooth_Init(uint16_t baudRate); // Bluetooth USART Initializtion(蓝牙串口初始化函数)
void USART1_IRQHandler(void);           // Bluetooth USART1 Interrupt(蓝牙串口1中断函数)

// Data Send Functions
void Bluetooth_SendData(USARTBuffer *Bluetooth_Send_Data);  // Bluetooth Send Data(蓝牙发送数据函数)
void Bluetooth_SendNumber(uint32_t Number, uint8_t Length); // Bluetooth Send Number(蓝牙发送数字函数)
uint8_t Bluetooth_GetRXDataSlice(void);                     // Bluetooth Get Receive Data Slice(蓝牙获取接收数据切片函数)

// Data Receive Function
USARTBuffer Bluetooth_ReceiveData(void); // Bluetooth Receive Data(蓝牙接收数据函数)

// Flag Getting Function
uint8_t Bluetooth_GetRXFlag(void); // Bluetooth Get Receive Flag(蓝牙获取接收标志函数)
uint8_t Bluetooth_GetTXFlag(void); // Bluetooth Get Send Flag(蓝牙获取发送标志函数)

#endif